package com.effectiv.gooruda.business.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.effectiv.gooruda.business.api.AbstractBusinessService;
import com.effectiv.gooruda.business.api.LovService;
import com.effectiv.gooruda.domain.Lov;
import com.effectiv.gooruda.repository.LovRepository;


@Service
public class LovServiceImpl extends AbstractBusinessService<Lov,String> implements LovService{
	
	@Autowired
	private LovRepository repository;
	
	@Override
	protected void initInternal() {
		setRepository(repository);		
	}

	@Override
	public Lov findByName(String name) {
		return repository.findByName(name);
	}

	@Override
	public List<Lov> findByDomain(String domain) {
		return repository.findByDomain(domain);
	}

}
